Package jeresources.jei.worldgen
Class WorldGenCategory
- All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<WorldGenWrapper>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(@NotNull WorldGenWrapper recipe, @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, @NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY) Draw extras or additional info about the recipe.@NotNull mezz.jei.api.gui.drawable.IDrawableReturns the drawable background for a single recipe in this category.@NotNull Class<? extends WorldGenWrapper>Returns the class of recipes that this recipe category handles.@NotNull mezz.jei.api.recipe.RecipeType<WorldGenWrapper>@NotNull net.minecraft.network.chat.ComponentgetTitle()Returns a text component representing the name of this recipe type.@NotNull net.minecraft.resources.ResourceLocationgetUid()Returns a unique ID for this recipe category.voidsetRecipe(@NotNull mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, @NotNull WorldGenWrapper recipeWrapper, @NotNull mezz.jei.api.recipe.IFocusGroup focuses) Sets all the recipe's ingredients by filling out an instance ofIRecipeLayoutBuilder.Methods inherited from class jeresources.jei.BlankJEIRecipeCategory
getIcon, getTooltipStringsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mezz.jei.api.recipe.category.IRecipeCategory
draw, getRegistryName, getTooltipStrings, handleClick, handleInput, isHandled, setIngredients, setRecipe, setRecipe
-
Field Details
-
X_ITEM
protected static final int X_ITEM- See Also:
-
Y_ITEM
protected static final int Y_ITEM- See Also:
-
X_DROP_ITEM
protected static final int X_DROP_ITEM- See Also:
-
Y_DROP_ITEM
protected static final int Y_DROP_ITEM- See Also:
-
-
Constructor Details
-
WorldGenCategory
public WorldGenCategory()
-
-
Method Details
-
getUid
@NotNull public @NotNull net.minecraft.resources.ResourceLocation getUid()Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryReturns a unique ID for this recipe category. Referenced from recipes to identify which recipe category they belong to. -
getTitle
@NotNull public @NotNull net.minecraft.network.chat.Component getTitle()Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryReturns a text component representing the name of this recipe type. Drawn at the top of the recipe GUI pages for this category. -
getBackground
@NotNull public @NotNull mezz.jei.api.gui.drawable.IDrawable getBackground()Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryReturns the drawable background for a single recipe in this category. The size of the background determines how recipes are laid out by JEI, make sure it is the right size to contains everything being displayed. -
getRecipeClass
Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryReturns the class of recipes that this recipe category handles. -
getRecipeType
- Returns:
- the type of recipe that this category handles.
-
draw
public void draw(@NotNull @NotNull WorldGenWrapper recipe, @NotNull @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, @NotNull @NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY) Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryDraw extras or additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled byIRecipeCategory.getTooltipStrings(Object, IRecipeSlotsView, double, double)- Specified by:
drawin interfacemezz.jei.api.recipe.category.IRecipeCategory<WorldGenWrapper>- Overrides:
drawin classBlankJEIRecipeCategory<WorldGenWrapper>- Parameters:
recipe- the current recipe being drawn.recipeSlotsView- a view of the current recipe slots being drawn.poseStack- the currentPoseStackfor rendering.mouseX- the X position of the mouse, relative to the recipe.mouseY- the Y position of the mouse, relative to the recipe.- See Also:
-
for a simple class for drawing things.for useful functions.for information about the ingredients that are currently being drawn.
-
setRecipe
public void setRecipe(@NotNull @NotNull mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, @NotNull @NotNull WorldGenWrapper recipeWrapper, @NotNull @NotNull mezz.jei.api.recipe.IFocusGroup focuses) Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategorySets all the recipe's ingredients by filling out an instance ofIRecipeLayoutBuilder. This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe.
-